package com.meiya.baseweb.service;

import org.springframework.transaction.annotation.Transactional;

import com.meiya.baseweb.entity.Fact;
import com.meiya.baseweb.entity.Opinion;
import com.meiya.baseweb.entity.Pubopinion;

public interface IPublicOpinionViewService {
	
	/**
	 * 服务中加入一个 <code>Pubopinion</code> 实体，顺带会插入一个<code>Fact</code>实体，
	 * 两个<code>Opinion</code>实体(其中不同的为title字段分别为正反面)
	 * @param p
	 */
	@Transactional
	public void addNewPublicOpinion(Pubopinion p);
	
	public Pubopinion getSinglePubopinion(String filter);

	@Transactional
	public void removePubopinion(Pubopinion p);
	

	@Transactional
	public void addPubopinion(Pubopinion p);
	@Transactional
	public void addOpinion(Opinion o);
	@Transactional
	public void addFact(Fact f);
}
